Home

Operator Usage

Name

xor

Description

xor(ket1, ket2)
returns |yes> if ket1 xor ket2 are |yes>, |no> otherwise.


Examples

xor(|yes>, |yes>)
    |no>

xor(|yes>, |no>)
    |yes>

xor(|no>, |no>)
    |no>


See also

and, or xor:

Operator type

function 1, function 2